package top.zackyoung.bbs.mapper;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

@Repository
@Mapper
public interface KeepMapper {
    int insertKeep(@Param("id") Integer id, @Param("type") Integer type, @Param("keep_object_id") Integer keep_object_id);

    // 查询收藏数
    int queryAlreadyCollected(@Param("id") Integer id, @Param("type") Integer type, @Param("keep_object_id") Integer keep_object_id);

    // 删除收藏
    int deleteKeep();
}